﻿// -----------------------------------------------------------------------
// This class represents an exception when the precondition of an 
// operation is violated.
//
// Author: Dan Buvid
// Date: April 13, 2012
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ResidencyPlacement
{
    public class PreconditionException : Exception
    {
        /// <summary>
        /// Customized constructor.
        /// </summary>
        /// <param name="className">The name of the class from which the exception is thrown.</param>
        /// <param name="method">The name of the method from which the exception is thrown.</param>
        /// <param name="message">The additional message to be displayed.</param>
        public PreconditionException (String className, String method, String message) {
            Console.WriteLine("Precondition violated for {0} in {1} : {2}", className, method, message);
        }
    }
}
